import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state = {
    count: 1,
}
const getters = {}
const actions = {}
const mutations = {
    calculateCount(state, flag) {
        state.count = flag ? state.count++ : state.count--;
    }
}

const menuListItem = new Vuex.Store({
    namespaced: true,
    state,
    getters,
    actions,
    mutations
})

export default menuListItem